import Vue from 'vue'
import App from './App'
import router from './router'
import VueAMap from 'vue-amap'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
import axios from 'axios'
import qs from 'qs'
import config from '@/common/config'
Vue.prototype.$axios = axios
Vue.prototype.$config = config
Vue.prototype.$qs = qs

Vue.use(MuseUI)
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '7c9113e5d8fd4fe2153551b9787dd82c',
  plugin: [
    'AMap.Autocomplete',
    'AMap.PlaceSearch',
    'AMap.Scale',
    'AMap.OverView',
    'AMap.ToolBar',
    'AMap.MapType',
    'AMap.PolyEditor',
    'AMap.CircleEditor',
    'AMap.Marker'
  ],
  uiVersion: '1.1.1',
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
